package com.java.miaosha.constants;

/**
 * @Auther: jiangli
 * @Date: 2019/6/6 10:07
 */
public interface Constants {
	//手机号码格式不正确
	String MOBILE_FORMAT_ERROR = "手机号码格式不正确";
	//用户不存在
	String USER_NOT_EXISTS = "用户不存在";
	//账号或密码不正确
	String USERNAME_OR_PASSWORD_ERROR = "账号或密码不正确";
	//用户cookie
	String TOKEN = "token";

	//商品部存在
	String GOODS_NOT_EXISTS = "商品不存在";
	//商品秒杀完毕
	String GOODS_MIAOSHA_OVER = "商品秒杀完毕";
	//不能重复秒杀
	String REPEATE_MIAOSHA = "不能重复秒杀";
	//秒杀商品库存在redis的前缀
	String MIAOSHA_GOODS_STOCK_COUNT = "miaosha_goods_stock_count";



	//redis微信codeKey
	String WEIXINCODE_KEY = "weixincode_key";
	//redis微信codeKey过期时间 单位:s
	Long WEIXINCODE_TIMEOUT = 1800l;
	// token
	String MEMBER_TOKEN_KEYPREFIX = "member_login";
	// 安卓的登陆类型
	String MEMBER_LOGIN_TYPE_ANDROID = "Android";
	// IOS的登陆类型
	String MEMBER_LOGIN_TYPE_IOS = "IOS";
	// PC的登陆类型
	String MEMBER_LOGIN_TYPE_PC = "PC";
	// 登陆超时时间 有效期 90天
	Long MEMBRE_LOGIN_TOKEN_TIME = 77776000L;

	String LOGIN_TOKEN_COOKIE_NAME = "login.pc.token";

	String LOGIN_QQ_OPENID = "qq_openid";
}